const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  // username这个是在本地拿的
  username: state => state.user.userInfo.username,
  // staffPhoto 这个是从服务器拿的，不是本地
  staffPhoto: state => state.user.userInfo.staffPhoto,
  companyId: state => state.user.userInfo.companyId, // 建立对于user模块的companyId的快捷访问
  userId: state => state.user.userInfo.userId
}
export default getters
